package com.ecloud.support.generator.controller;

import javax.annotation.Resource;

import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.ecloud.common.base.result.Result;
import com.ecloud.common.base.valid.ValidGroup.QueryList;
import com.ecloud.support.generator.model.dto.TableInfoDto;
import com.ecloud.support.generator.service.iface.ITableInfoService;

@RestController
@RequestMapping({ "/table/info" })
public class TableInfoController {
    @Resource
    private ITableInfoService service;

    /**
     * 查询列表
     *
     * @author LiuGangQiang Create in 2021/04/01
     * @param dto 入参
     * @return {@link Result}
     */
    @GetMapping("/tables")
    public Result<?> queryList(@Validated({ QueryList.class }) TableInfoDto dto) {
        return service.queryList(dto);
    }
}
